package com.yf.tz.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 账户信息实体
 * 表名 account
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Jul 01 16:32:18 CST 2020
 */
@Setter
@Getter
public class AccountEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
        //用户ID
    private Long userId;
        //数量
    private BigDecimal amount;
        //ENUM-类型:"CEC-存储金","POINT-积分"
    private Integer type;

    public AccountEntity(){

    }

    public AccountEntity(Long userId, BigDecimal amount, Integer type) {
        this.userId = userId;
        this.amount = amount;
        this.type = type;
    }
}
